﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Pacifico.DataAccess.INFORME_ACCIDENTE_VEHICULAR>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Informe de Accidentes Vehiculares
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>Informes de Accidentes Vehiculares</h2>

<p>
    <%: Html.ActionLink("Ingresar", "Create", "InformeAccidenteVehicular", routeValues: null, htmlAttributes: new {@class="btn"})%>    
</p>
<table class="table table-striped" >
    <tr>
        <th>
            Codigo
        </th>
        <th>
            Siniestro
        </th>
        <th>
            Fecha
        </th>
        <th>
            Direccion
        </th>        
        <th></th>
    </tr>

<% foreach (var item in Model) { %>
    <tr>
        <td>
            <%: Html.DisplayFor(modelItem => item.Co_InformeAccidenteVehicular) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.SINIESTRO.Nu_Siniestro) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.Fe_InformeAccidentVehicular) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.Tx_Direccion) %>
        </td>        
        <td>
            <%: Html.ActionLink("Modificar el Informe Accidente Vehicular", "Edit", new {  id=item.Co_InformeAccidenteVehicular  }) %> |
             <%: Html.ActionLink("Adjuntar Archivos", "AdjuntarArchivos", new { id=item.Co_InformeAccidenteVehicular }) %> |             
        </td>

          
<% } %>

</table>
   
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="ScriptsSection" runat="server">
</asp:Content>
